Auto merge of #2166 - alexcrichton:clean-up-update, r=huonw
authorbors <bors@rust-lang.org>
Mon, 23 Nov 2015 05:31:49 +0000 (05:31 +0000)
committerbors <bors@rust-lang.org>
Mon, 23 Nov 2015 05:31:49 +0000 (05:31 +0000)
commit4317d9875ac87828eeb51af7e1d7affb3c213926
tree85448ece8f1574effdcc59a4953ed16acacd907b
parent21197dfa96c00bcd4ef7529cae0ed90110d963e0
parent015de90a18f23ef227ec38a526632ed7a77aedf1
Auto merge of #2166 - alexcrichton:clean-up-update, r=huonw

I've noticed some slightly odd output from `cargo update` in the past and I
believe this cleanup should address what's going on under the hood. There were a
few minor issues with the previous implementation.

* When adding the previous graph to the list of changes, packages with multiple
  versions would override one another instead of all get added to one list.
* The `Ord` implementation for `SourceId` was actually incorrect in that it
  disagreed with the `Eq` implementation. This could end up causing subtle bugs
  here and there. dependening on what operators were used.

This tweak fixes both points and I believe should touch up the odd output I've
been seeing from `cargo update`.